package com.wynne.ptldemo.enums;

public class TagValidityEventState {

    public enum TagEvent {
        TRIGGER_ON,
        ONTO_ON,
        ONTO_OFF,
        TRIGGER_OFF;
    }

    public enum TagState {
        ON,
        OFF;

        public static TagState getState(String state) {
            for (TagState tagState : TagState.values()) {
                if (tagState.name().equalsIgnoreCase(state)) {
                    return tagState;
                }
            }
            return null;
        }
    }

    public enum TagMethod {
        ontoOff(10, "ontoOff"),
        ontoOn(20, "ontoOn"),
        triggerOff(30, "triggerOff"),
        triggerOn(40, "triggerOn");

        private int value;
        private String description;

        TagMethod(int value, String description) {
            this.value = value;
            this.description = description;
        }

        public int getValue() {
            return value;
        }

        public String getDescription() {
            return description;
        }

    }


}
